package com.chen.positioning;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.web.WebApplicationInitializer;

/**
 * 启动类
 *
 * @author halo
 */
@SpringBootApplication

/* 本地运行版*/
public class PositioningApplication {
    private static final Logger log = LoggerFactory.getLogger(PositioningApplication.class);
    public static void main(String[] args) {
        log.info("***********spring 启动类开始***********");
        SpringApplication.run(PositioningApplication.class, args);
        log.info("***********spring 启动类结束**********");
    }
}
/*打成 war 包，需要修改启动类 打包服务器运行版
public class PositioningApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
    private static final Logger log = LoggerFactory.getLogger(PositioningApplication.class);
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PositioningApplication.class);
    }

}
*/
